package com.itheima.mapper;

import com.itheima.domain.Item;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ItemsMapper {


    @Select("select * from items where id in(select items_id from orderdetail where orders_id=#{oid})")
    List<Item> findByOid(int id);
}
